package com.healthtop.mapper;

import com.healthtop.common.Page;
import com.healthtop.dto.ResourceDto;
import com.healthtop.model.XsMenu;
import com.healthtop.model.XsRole;
import com.healthtop.model.XsUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface DIYMapper {
    
    List<ResourceDto> getParentResource(@Param("uid") long uid);

    List<ResourceDto> getResourceByPid(@Param("id")long id,@Param("uid") long uid);

    List selectXsGameGategoryList(Page page);

    int selectXsGameGategoryListCount(Page page);

    List selectXsGameDetailsList(Page page);

    int selectXsGameDetailsListCount(Page page);

    List<XsUser>  selectXsUser(@Param("userName")String userName);

    List<XsRole> selectXsRoleByUid(@Param("userId")Long userId);

    int selectXsUserCount(Map map);

    List selectXsMenuList(Page page);

    int selectXsMenuListCount(Page page);

    List selectXsRoleList(Page page);

    int selectXsRoleListCount(Page page);

    List<Long> selectMenuIdByRoleId(@Param("roleId")long roleId);

    List selectXsUserList(Page page);

    int selectXsUserListCount(Page page);

    List<Map> getCmsXsMenuList();

    List<Map> getGameGategoryList(Page page);

    int getGameGategoryListCount(Page page);

    List selectXsDictionaryList(Page page);

    int selectXsDictionaryListCount(Page page);

    List<Map> forwardGameDetail(Map map);

    int forwardGameDetailCount(Map map);

    List selectXsArticleCategoryList(Page page);

    int selectXsArticleCategoryListCount(Page page);
}